package com.xy.api.service.calculate;

import com.xy.api.model.request.calculate.lirun.temu.LadderCostRequest;
import com.xy.api.model.request.calculate.lirun.temu.SaveLadderCostRequest;
import com.xy.api.model.dto.calculate.LadderCostResultDTO;

import java.math.BigDecimal;
import java.util.Map;

public interface ILadderCostService {

    /**
     * 查询阶梯价格
     *
     * @param request
     * @return
     */
    LadderCostResultDTO queryLadderCostList(LadderCostRequest request);

    /**
     * 保存
     *
     * @param request
     */
    void saveLadderCost(SaveLadderCostRequest request);

    /**
     * 计算阶梯价格
     *
     * @param bizCode  业务code
     * @param valueMap
     * @return
     */
    BigDecimal getLadderCost(String bizCode, Map<String, BigDecimal> valueMap);
}
